﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using System.Drawing;

namespace ChartEdit
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {

            Globals.Initialize();

            // UNCOMMENT THIS CODE TO MAKE AN EXAMPLE THEME.XML AND SAVE IT
            /*
            Theme thm = new Theme();
            thm.Elements.Add( new ChartElement() );
            thm.RenderOrder = "5 2 0";

            thm.Save( "theme.xml" );*/



            // UNCOMMENT THIS CODE TO MAKE AN EXAMPLE GLOBALS.XML AND SAVE IT
            /*Globals glob = new Globals();

            GameProps gp = new GameProps()
            {
                Name = "GH3",
      
            };

            TrackProps tp = new TrackProps()
            {
                Name = "default",
                HopoLogic = "GH3",
            };

            TrackProps tp2 = new TrackProps()
            {
                Name = "drums",
                HopoLogic = "NO LOGIC LOL",
            };

            NoteProp np = new NoteProp()
            {
                Fret = 0,
                ForcesHOPO = true,
            };
            NoteProp np2 = new NoteProp()
            {
                Fret = 1,
                ForcesHOPO = true,
            };

            SpecialProp sp = new SpecialProp()
            {
                Name = "Starpower",
                Flag = 2,
            };

            tp.NoteProperties.Add( np );
            tp.NoteProperties.Add( np2 );

            tp.SpecialProperties.Add( sp );

            NoteProp np3 = new NoteProp()
            {
                Fret = 0,
                ForcesHOPO = false,
            };
            NoteProp np4 = new NoteProp()
            {
                Fret = 1,
                ForcesHOPO = false,
            };

            tp2.NoteProperties.Add( np3 );
            tp2.NoteProperties.Add( np4 );

            gp.TrackProperties.Add( tp );
            gp.TrackProperties.Add( tp2 );

            glob.GameProperties.Add( gp );

            glob.Save( "globals.xml" );*/

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault( false );
            Application.Run( new MainForm() );
        }
    }
}